package com.tyrone.captcha.entity.constant;

/**
 * @author xieyl
 * @create 2021/11/18 16:26
 */
public class SlideImageCodeConstant {

    /**
     * 时间阈值
     */
    public static final long TIME_THRESHOLD_LOW = 90;

    public static final long TIME_THRESHOLD_HIGH = 3000;

    /**
     * 偏移量阈值（由滑动验证码大小决定）680：图片宽度    680-136：图片宽度-验证码宽度
     */

    public static final int OFFSET_THRESHOLD_LOW = 680 / 2;

    public static final int OFFSET_THRESHOLD_HIGH = 680 - 136;

    /**
     * 滑动轨迹阈值
     */
    public static final int TRAJECTORY_THRESHOLD_LOW = 20;
    public static final int TRAJECTORY_THRESHOLD_HIGH = 680 - 136;

    /**
     * 验证码校验状态码
     */
    public static final int IMAGE_CODE_CHECK_FAILURE = 0;
    public static final int IMAGE_CODE_CHECK_SUCCESS = 1;

}
